package model;

import java.util.Date;

import javax.persistence.Id;
import com.googlecode.objectify.*;

public class EventPlus {
	@Id Long id;
	Key<EventInfo> event;
	Key<UserProfile> user;
	int score;
	Date createtime;
	
	public EventPlus() {};
	public EventPlus(long eid, String uid) {		
		event = new Key<EventInfo>(EventInfo.class, eid);
		user = new Key<UserProfile>(UserProfile.class, uid);
		score = 0;
		createtime = new Date();
	}	
	
	public Key<EventInfo> getEvent() {
		return event;
	}
	public void setEvent(Key<EventInfo> event) {
		this.event = event;
	}
	public Key<UserProfile> getUser() {
		return user;
	}
	public void setUser(Key<UserProfile> user) {
		this.user = user;
	}
}
